package cn.wolfcode.wolf2w.service;


import cn.wolfcode.wolf2w.domain.TravelComment;
import cn.wolfcode.wolf2w.query.TravelCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * 游记评论服务接口
 */
public interface ITravelCommentService {




    /**
     * 查单个
     * @param id
     * @return
     */
    TravelComment get(String id);


    /**
     * 添加
     * @param travelComment
     */
    void save(TravelComment travelComment);
   
    /**
     * 分页查询
     * @param qo
     * @return
     */
    Page<TravelComment> query(TravelCommentQuery qo);


    /**
     * 查询游记评论集合
     * @param travelId
     * @return
     */
    List<TravelComment> queryByTravelId(String travelId);
}
